﻿ 
 
using Common.EF.Map;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Api.Mapping.T4
 {
	using StatsData.Data.Entity;
			#region  t_andon_data
     public partial class t_andon_dataMap  :EntityBaseMap< t_andon_data >    
	{   
        public override void Configure(EntityTypeBuilder<t_andon_data> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.ip_type).HasMaxLength(600);
builder.Property(t => t.ip_type_en).HasMaxLength(600);
builder.Property(t => t.ip_type_th).HasMaxLength(600);
builder.Property(t => t.i_type).HasMaxLength(600);
builder.Property(t => t.i_type_th).HasMaxLength(600);
builder.Property(t => t.i_type_en).HasMaxLength(600);
builder.Property(t => t.i_remark).HasMaxLength(600);
builder.Property(t => t.i_remark_en).HasMaxLength(600);
builder.Property(t => t.i_remark_th).HasMaxLength(600);
builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_bad
     public partial class t_badMap  :EntityBaseMap< t_bad >    
	{   
        public override void Configure(EntityTypeBuilder<t_bad> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.procedure_name).HasMaxLength(50);
builder.Property(t => t.produre_name_en).HasMaxLength(600);
builder.Property(t => t.produre_name_th).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.procedure_code).HasMaxLength(50);
builder.Property(t => t.bad_code).HasMaxLength(50);
builder.Property(t => t.bad_name).HasMaxLength(50);
builder.Property(t => t.bad_name_en).HasMaxLength(600);
builder.Property(t => t.bad_name_th).HasMaxLength(600);
builder.Property(t => t.type).HasMaxLength(20);
builder.Property(t => t.type_en).HasMaxLength(600);
builder.Property(t => t.type_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_bi_cross_send_repair_detail
     public partial class t_bi_cross_send_repair_detailMap  :EntityBaseMap< t_bi_cross_send_repair_detail >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_cross_send_repair_detail> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_id).HasMaxLength(50);
builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.work_id).HasMaxLength(50);
builder.Property(t => t.work_code).HasMaxLength(600);
builder.Property(t => t.send_repair_detail_code).HasMaxLength(600);
builder.Property(t => t.send_user_id).HasMaxLength(50);
builder.Property(t => t.send_user_code).HasMaxLength(600);
builder.Property(t => t.send_user_name).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_bi_depart_attendance
     public partial class t_bi_depart_attendanceMap  :EntityBaseMap< t_bi_depart_attendance >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_depart_attendance> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.department_code).HasMaxLength(50);
builder.Property(t => t.department_name).HasMaxLength(600);
builder.Property(t => t.department_name_en).HasMaxLength(600);
builder.Property(t => t.department_name_th).HasMaxLength(600);
builder.Property(t => t.class_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_bi_dir_emp_output_workhour
     public partial class t_bi_dir_emp_output_workhourMap  :EntityBaseMap< t_bi_dir_emp_output_workhour >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_dir_emp_output_workhour> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.dir_emp_id).HasMaxLength(50);
builder.Property(t => t.dir_emp_code).HasMaxLength(20);
builder.Property(t => t.dir_emp_name).HasMaxLength(50);
builder.Property(t => t.line_id).HasMaxLength(50);
builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(50);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_supervisor_id).HasMaxLength(50);
builder.Property(t => t.line_supervisor_name).HasMaxLength(50);
builder.Property(t => t.line_supervisor_code).HasMaxLength(20);
builder.HasIndex(t => t.work_id);
builder.Property(t => t.work_id).HasMaxLength(50);
builder.Property(t => t.work_code).HasMaxLength(50);
builder.HasIndex(t => t.product_id);
builder.Property(t => t.product_id).HasMaxLength(50);
builder.Property(t => t.product_code).HasMaxLength(50);
builder.Property(t => t.section_code).HasMaxLength(20);

		} 

     }
	 #endregion
					#region  t_bi_dir_emp_workhour_output_rate
     public partial class t_bi_dir_emp_workhour_output_rateMap  :EntityBaseMap< t_bi_dir_emp_workhour_output_rate >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_dir_emp_workhour_output_rate> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.dir_emp_id).HasMaxLength(50);
builder.Property(t => t.dir_emp_code).HasMaxLength(20);
builder.Property(t => t.dir_emp_name).HasMaxLength(50);
builder.Property(t => t.line_id).HasMaxLength(50);
builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(50);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_supervisor_id).HasMaxLength(50);
builder.Property(t => t.line_supervisor_name).HasMaxLength(50);
builder.Property(t => t.line_supervisor_code).HasMaxLength(20);

		} 

     }
	 #endregion
					#region  t_bi_line_safety
     public partial class t_bi_line_safetyMap  :EntityBaseMap< t_bi_line_safety >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_line_safety> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.remark).HasMaxLength(500);

		} 

     }
	 #endregion
					#region  t_bi_wip_issue_record
     public partial class t_bi_wip_issue_recordMap  :EntityBaseMap< t_bi_wip_issue_record >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_wip_issue_record> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(100);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.shop_depart_code).HasMaxLength(50);
builder.Property(t => t.shop_depart_name).HasMaxLength(100);
builder.Property(t => t.shop_depart_name_en).HasMaxLength(600);
builder.Property(t => t.shop_depart_name_th).HasMaxLength(600);
builder.Property(t => t.description).HasMaxLength(500);
builder.Property(t => t.description_en).HasMaxLength(600);
builder.Property(t => t.description_th).HasMaxLength(600);
builder.Property(t => t.solution).HasMaxLength(500);
builder.Property(t => t.solution_en).HasMaxLength(600);
builder.Property(t => t.solution_th).HasMaxLength(600);
builder.Property(t => t.status_name).HasMaxLength(50);
builder.Property(t => t.status_name_en).HasMaxLength(600);
builder.Property(t => t.create_user_code).HasMaxLength(50);
builder.Property(t => t.create_user_name).HasMaxLength(50);
builder.Property(t => t.charge_user_code).HasMaxLength(50);
builder.Property(t => t.charge_user_name).HasMaxLength(50);
builder.Property(t => t.close_user_code).HasMaxLength(50);
builder.Property(t => t.close_user_name).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_bi_wip_work_hour_statis_labor
     public partial class t_bi_wip_work_hour_statis_laborMap  :EntityBaseMap< t_bi_wip_work_hour_statis_labor >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_wip_work_hour_statis_labor> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.work_id);
builder.Property(t => t.work_id).HasMaxLength(50);
builder.Property(t => t.work_code).HasMaxLength(60);
builder.HasIndex(t => t.product_id);
builder.Property(t => t.product_id).HasMaxLength(50);
builder.Property(t => t.product_code).HasMaxLength(60);
builder.Property(t => t.line_id).HasMaxLength(50);
builder.Property(t => t.line_code).HasMaxLength(60);
builder.Property(t => t.line_name).HasMaxLength(60);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_supervisor_id).HasMaxLength(50);
builder.Property(t => t.line_supervisor_name).HasMaxLength(20);
builder.Property(t => t.line_supervisor_code).HasMaxLength(40);
builder.Property(t => t.procedure_id).HasMaxLength(50);
builder.Property(t => t.process_version).HasMaxLength(50);
builder.Property(t => t.section_code).HasMaxLength(20);
builder.Property(t => t.actual_labor_work_hour_unit).HasMaxLength(5);
builder.Property(t => t.standard_labor_work_hour_unit).HasMaxLength(5);
builder.Property(t => t.workshop_id).HasMaxLength(50);
builder.Property(t => t.sap_procedure_code).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_bi_wip_work_hour_statis_machine
     public partial class t_bi_wip_work_hour_statis_machineMap  :EntityBaseMap< t_bi_wip_work_hour_statis_machine >    
	{   
        public override void Configure(EntityTypeBuilder<t_bi_wip_work_hour_statis_machine> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.work_id);
builder.Property(t => t.work_id).HasMaxLength(50);
builder.Property(t => t.work_code).HasMaxLength(40);
builder.HasIndex(t => t.product_id);
builder.Property(t => t.product_id).HasMaxLength(50);
builder.Property(t => t.product_code).HasMaxLength(60);
builder.Property(t => t.line_id).HasMaxLength(50);
builder.Property(t => t.line_code).HasMaxLength(60);
builder.Property(t => t.line_name).HasMaxLength(60);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_supervisor_id).HasMaxLength(50);
builder.Property(t => t.line_supervisor_name).HasMaxLength(20);
builder.Property(t => t.line_supervisor_code).HasMaxLength(40);
builder.Property(t => t.procedure_id).HasMaxLength(50);
builder.Property(t => t.process_version).HasMaxLength(50);
builder.Property(t => t.section_code).HasMaxLength(20);
builder.Property(t => t.standard_machine_work_hour_unit).HasMaxLength(600);
builder.Property(t => t.workshop_id).HasMaxLength(50);
builder.Property(t => t.sap_procedure_code).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_csi
     public partial class t_csiMap  :EntityBaseMap< t_csi >    
	{   
        public override void Configure(EntityTypeBuilder<t_csi> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.batch).HasMaxLength(50);
builder.Property(t => t.type).HasMaxLength(50);
builder.Property(t => t.item_no).HasMaxLength(50);
builder.Property(t => t.so_no).HasMaxLength(20);
builder.Property(t => t.so_item).HasMaxLength(20);
builder.Property(t => t.pdt_no).HasMaxLength(600);
builder.Property(t => t.cust_no).HasMaxLength(50);
builder.Property(t => t.result_no).HasMaxLength(50);
builder.Property(t => t.result).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_department
     public partial class t_departmentMap  :EntityBaseMap< t_department >    
	{   
        public override void Configure(EntityTypeBuilder<t_department> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(50);
builder.Property(t => t.name).HasMaxLength(50);
builder.Property(t => t.name_en).HasMaxLength(600);
builder.Property(t => t.name_th).HasMaxLength(600);
builder.Property(t => t.parent_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_exceed
     public partial class t_exceedMap  :EntityBaseMap< t_exceed >    
	{   
        public override void Configure(EntityTypeBuilder<t_exceed> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.applicanter).HasMaxLength(50);
builder.Property(t => t.manager).HasMaxLength(50);
builder.Property(t => t.code).HasMaxLength(50);
builder.Property(t => t.dept_code).HasMaxLength(50);
builder.Property(t => t.dpet_name).HasMaxLength(600);
builder.Property(t => t.dept_name_en).HasMaxLength(600);
builder.Property(t => t.dept_name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_exceed_detail
     public partial class t_exceed_detailMap  :EntityBaseMap< t_exceed_detail >    
	{   
        public override void Configure(EntityTypeBuilder<t_exceed_detail> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.exceed_id).HasMaxLength(50);
builder.Property(t => t.type).HasMaxLength(50);
builder.Property(t => t.source_no).HasMaxLength(50);
builder.Property(t => t.item_no).HasMaxLength(50);
builder.Property(t => t.department).HasMaxLength(50);
builder.Property(t => t.item_desc).HasMaxLength(600);
builder.Property(t => t.product_no).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_expense
     public partial class t_expenseMap  :EntityBaseMap< t_expense >    
	{   
        public override void Configure(EntityTypeBuilder<t_expense> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.dept_code).HasMaxLength(50);
builder.Property(t => t.dept_name).HasMaxLength(600);
builder.Property(t => t.dept_name_en).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_fpy
     public partial class t_fpyMap  :EntityBaseMap< t_fpy >    
	{   
        public override void Configure(EntityTypeBuilder<t_fpy> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.procedure_code).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_in_process_work
     public partial class t_in_process_workMap  :EntityBaseMap< t_in_process_work >    
	{   
        public override void Configure(EntityTypeBuilder<t_in_process_work> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.work_code).HasMaxLength(600);
builder.Property(t => t.customer_product_code).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_kpi_statis
     public partial class t_kpi_statisMap  :EntityBaseMap< t_kpi_statis >    
	{   
        public override void Configure(EntityTypeBuilder<t_kpi_statis> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.title).HasMaxLength(600);
builder.Property(t => t.title_en).HasMaxLength(600);
builder.Property(t => t.title_th).HasMaxLength(600);
builder.Property(t => t.date_type).HasMaxLength(600);
builder.Property(t => t.date_type_en).HasMaxLength(600);
builder.Property(t => t.date_type_th).HasMaxLength(600);
builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.procedure_name).HasMaxLength(600);
builder.Property(t => t.procedure_name_en).HasMaxLength(600);
builder.Property(t => t.procedure_name_th).HasMaxLength(600);
builder.Property(t => t.type).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_line
     public partial class t_lineMap  :EntityBaseMap< t_line >    
	{   
        public override void Configure(EntityTypeBuilder<t_line> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.workshop_name).HasMaxLength(50);
builder.Property(t => t.workshop_name_en).HasMaxLength(600);
builder.Property(t => t.workshop_code).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_line_fpy
     public partial class t_line_fpyMap  :EntityBaseMap< t_line_fpy >    
	{   
        public override void Configure(EntityTypeBuilder<t_line_fpy> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.procedure_top_bad).HasMaxLength(600);
builder.Property(t => t.procedure_top_bad_en).HasMaxLength(600);
builder.Property(t => t.procedure_top_bad_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_line_fpy_base
     public partial class t_line_fpy_baseMap  :EntityBaseMap< t_line_fpy_base >    
	{   
        public override void Configure(EntityTypeBuilder<t_line_fpy_base> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.section_depart_id).HasMaxLength(50);
builder.Property(t => t.section_depart_name_en).HasMaxLength(600);
builder.Property(t => t.section_depart_name).HasMaxLength(600);
builder.Property(t => t.procedure_name).HasMaxLength(600);
builder.Property(t => t.procedure_name_en).HasMaxLength(600);
builder.Property(t => t.procedure_code).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_line_motion
     public partial class t_line_motionMap  :EntityBaseMap< t_line_motion >    
	{   
        public override void Configure(EntityTypeBuilder<t_line_motion> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.user_code).HasMaxLength(600);
builder.Property(t => t.username).HasMaxLength(600);
builder.Property(t => t.motioner_position).HasMaxLength(600);
builder.Property(t => t.motioner_level).HasMaxLength(600);
builder.Property(t => t.motioner_name).HasMaxLength(600);
builder.Property(t => t.motioner_location).HasMaxLength(600);
builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.category).HasMaxLength(600);
builder.Property(t => t.desc).HasMaxLength(600);
builder.Property(t => t.desc_image).HasMaxLength(600);
builder.Property(t => t.improve_desc).HasMaxLength(600);
builder.Property(t => t.improve_desc_image).HasMaxLength(600);
builder.Property(t => t.benefit).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_manufacturing_rate
     public partial class t_manufacturing_rateMap  :EntityBaseMap< t_manufacturing_rate >    
	{   
        public override void Configure(EntityTypeBuilder<t_manufacturing_rate> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_manu_source_hour_efficiency
     public partial class t_manu_source_hour_efficiencyMap  :EntityBaseMap< t_manu_source_hour_efficiency >    
	{   
        public override void Configure(EntityTypeBuilder<t_manu_source_hour_efficiency> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_id).HasMaxLength(50);
builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_user_name).HasMaxLength(600);
builder.Property(t => t.line_user_code).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_motion
     public partial class t_motionMap  :EntityBaseMap< t_motion >    
	{   
        public override void Configure(EntityTypeBuilder<t_motion> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.dept_code).HasMaxLength(50);
builder.Property(t => t.status).HasMaxLength(50);
builder.Property(t => t.user_code).HasMaxLength(50);
builder.Property(t => t.code).HasMaxLength(50);
builder.Property(t => t.name).HasMaxLength(50);
builder.Property(t => t.name_en).HasMaxLength(600);
builder.Property(t => t.name_th).HasMaxLength(600);
builder.Property(t => t.category).HasMaxLength(20);

		} 

     }
	 #endregion
					#region  t_oee
     public partial class t_oeeMap  :EntityBaseMap< t_oee >    
	{   
        public override void Configure(EntityTypeBuilder<t_oee> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.liableDept).HasMaxLength(600);
builder.Property(t => t.liableLine).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_operating_objective
     public partial class t_operating_objectiveMap  :EntityBaseMap< t_operating_objective >    
	{   
        public override void Configure(EntityTypeBuilder<t_operating_objective> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.depart_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_organization
     public partial class t_organizationMap  :EntityBaseMap< t_organization >    
	{   
        public override void Configure(EntityTypeBuilder<t_organization> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(50);
builder.Property(t => t.name).HasMaxLength(50);
builder.Property(t => t.name_en).HasMaxLength(600);
builder.Property(t => t.name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_otd
     public partial class t_otdMap  :EntityBaseMap< t_otd >    
	{   
        public override void Configure(EntityTypeBuilder<t_otd> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_owe
     public partial class t_oweMap  :EntityBaseMap< t_owe >    
	{   
        public override void Configure(EntityTypeBuilder<t_owe> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.work_code).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_produce_statis
     public partial class t_produce_statisMap  :EntityBaseMap< t_produce_statis >    
	{   
        public override void Configure(EntityTypeBuilder<t_produce_statis> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_qc
     public partial class t_qcMap  :EntityBaseMap< t_qc >    
	{   
        public override void Configure(EntityTypeBuilder<t_qc> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_qc_exception
     public partial class t_qc_exceptionMap  :EntityBaseMap< t_qc_exception >    
	{   
        public override void Configure(EntityTypeBuilder<t_qc_exception> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_shipment
     public partial class t_shipmentMap  :EntityBaseMap< t_shipment >    
	{   
        public override void Configure(EntityTypeBuilder<t_shipment> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.pdt_no).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_shipment_examine
     public partial class t_shipment_examineMap  :EntityBaseMap< t_shipment_examine >    
	{   
        public override void Configure(EntityTypeBuilder<t_shipment_examine> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(600);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.work_code).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_user
     public partial class t_userMap  :EntityBaseMap< t_user >    
	{   
        public override void Configure(EntityTypeBuilder<t_user> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(50);
builder.Property(t => t.name).HasMaxLength(50);
builder.Property(t => t.name_en).HasMaxLength(100);
builder.Property(t => t.depart_id).HasMaxLength(50);
builder.Property(t => t.lcp_code).HasMaxLength(20);

		} 

     }
	 #endregion
					#region  t_wip_capacity_plan
     public partial class t_wip_capacity_planMap  :EntityBaseMap< t_wip_capacity_plan >    
	{   
        public override void Configure(EntityTypeBuilder<t_wip_capacity_plan> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.section_depart_id).HasMaxLength(50);
builder.Property(t => t.section_depart_name).HasMaxLength(600);
builder.Property(t => t.section_depart_nmae_en).HasMaxLength(600);
builder.Property(t => t.wip_capacity_product_category_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_wip_sn_test_statis_record
     public partial class t_wip_sn_test_statis_recordMap  :EntityBaseMap< t_wip_sn_test_statis_record >    
	{   
        public override void Configure(EntityTypeBuilder<t_wip_sn_test_statis_record> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.statis_key).HasMaxLength(80);
builder.HasIndex(t => t.work_code);
builder.Property(t => t.work_code).HasMaxLength(30);
builder.Property(t => t.ext_org_code).HasMaxLength(30);
builder.HasIndex(t => t.product_code);
builder.Property(t => t.product_code).HasMaxLength(50);
builder.Property(t => t.work_process_detail_id).HasMaxLength(50);
builder.Property(t => t.procedure_name).HasMaxLength(60);
builder.HasIndex(t => t.line_code);
builder.Property(t => t.line_code).HasMaxLength(60);
builder.Property(t => t.workstage_id).HasMaxLength(50);
builder.Property(t => t.workstage_name).HasMaxLength(60);
builder.Property(t => t.procedure_id).HasMaxLength(50);
builder.Property(t => t.test_record).HasMaxLength(400);
builder.Property(t => t.test_time_record).HasMaxLength(400);

		} 

     }
	 #endregion
					#region  t_wip_sn_wait_test_statis_record
     public partial class t_wip_sn_wait_test_statis_recordMap  :EntityBaseMap< t_wip_sn_wait_test_statis_record >    
	{   
        public override void Configure(EntityTypeBuilder<t_wip_sn_wait_test_statis_record> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.statis_key).HasMaxLength(80);
builder.HasIndex(t => t.work_code);
builder.Property(t => t.work_code).HasMaxLength(30);
builder.HasIndex(t => t.product_code);
builder.Property(t => t.product_code).HasMaxLength(50);
builder.HasIndex(t => t.line_code);
builder.Property(t => t.line_code).HasMaxLength(60);
builder.Property(t => t.ext_org_code).HasMaxLength(30);
builder.Property(t => t.workstage_name).HasMaxLength(60);
builder.Property(t => t.workstage_id).HasMaxLength(50);
builder.Property(t => t.procedure_id).HasMaxLength(50);
builder.Property(t => t.procedure_name).HasMaxLength(60);
builder.Property(t => t.sn_codes).HasMaxLength(2000);
builder.Property(t => t.rework_sn_codes).HasMaxLength(2000);

		} 

     }
	 #endregion
					#region  t_work
     public partial class t_workMap  :EntityBaseMap< t_work >    
	{   
        public override void Configure(EntityTypeBuilder<t_work> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.line_code).HasMaxLength(50);
builder.Property(t => t.line_name).HasMaxLength(600);
builder.Property(t => t.line_name_en).HasMaxLength(600);
builder.Property(t => t.line_name_th).HasMaxLength(600);
builder.Property(t => t.work_code).HasMaxLength(50);

		} 

     }
	 #endregion
		 }

 